package com.bachongLightNovel.system.service;

import com.bachongLightNovel.model.pojo.system.Permission;
import com.bachongLightNovel.model.vo.system.PermissionVo;

import java.util.List;

public interface SystemPermissionService {

    /**
     * 权限列表树形查询
     * @return
     */
    List<Permission> findPage();

    /**
     * 获取动态菜单权限
     * @param userId:
     * @return Result
     * @author vermouth
     */
    List<PermissionVo> getPermissions(Long userId);

    /**
     * 根据角色id查询对应的权限信息
     * @param roleId:
     * @return Result
     * @author vermouth
     */
    List<Long> getPermissionIdsByRoleId(Long roleId);
}
